﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderSplit.aspx.cs" Inherits="UI_Orders_OrderSplit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>订单拆分</title>
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script type = "text/javascript">
        window.name = "win";
        $(function() {
            $("#tOrderSplit").datagrid();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server" target="win">
    <div>
        <input type="hidden" id = "txtEbayUserId" runat = "server"/>
        <input type="hidden" id = "txtOrderId" runat = "server" />
        <asp:Repeater ID="repeater1" runat ="server">
        <HeaderTemplate>
            <table id = "tOrderSplit" class="easyui-datagrid" style="width:800px;height:200px;">
            <thead>
                <th field = "ck" width="60">请选择</th>
                <th field = "fOrderLineItemId" width="130">子订单号</th>
                <th field = "fProductId" width = "100">商品代码</th>
                <th field = "fProductName" width = "300">商品名称</th>
                <th field = "fUserCode" width = "100">商品规格</th>
                <th field = "fwhId" width = "100">发货仓库</th>
                <th field = "f" visible = "false" runat = "server"></th>
            </thead>
            <tbody>
        </HeaderTemplate>
        <FooterTemplate>
                </tbody>
            </table>
        </FooterTemplate>
        <ItemTemplate >
            <tr>
                <td runat="server" id = ebayUserId visible = "false"><%# Eval("EbayUserId")%></td>
                <td align="center">
                    <asp:CheckBox ID="chkitem" runat="server" Checked = '<%# Convert.ToBoolean(Eval("chk")) %>'/>
                </td>
                <td runat="server" id = orderLineItemId><%# Eval("OrderLineItemId")%></td>
                <td runat="server" id = ProductId><%# Eval("ProductId")%></td>
                <td><%# Eval("ProductName")%></td>
                <td><%# Eval("UserCode")%></td>
                <td><%# Eval("FName")%></td>
            </tr>
        </ItemTemplate>
        </asp:Repeater>
    </div>
        <div style="text-align:right;height:30px;line-height:30px; padding:10px; width:780px;">
        <asp:LinkButton runat="server" ID = "btnSend" CssClass = "easyui-linkbutton" 
                iconCls="icon-ok" Text = "OK" onclick="btnSend_Click" OnClientClick = "return confirm('确认开始拆分吗?');"></asp:LinkButton>
			<a id="btnkhtkClose" class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick = "javascript:window.close();">Close</a>
		</div>
    </form>
</body>
</html>
